-- GENERATED SPELL FOR [Rage Talon Fire Tongue] --


function spell0_10372(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(16144,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10372', 611, 1)
end

function spell1_10372(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(16635,pUnit)
pUnit:RegisterEvent('Sorts_10372', 622, 1)
end

function spell2_10372(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(16168,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10372', 21500, 1)
end

function Sorts_10372(pUnit, Event)
local choix_sorts_10372 = math.random(0, 2)
if choix_sorts_10372 == 0 then
pUnit:RegisterEvent('spell0_10372', 1, 1)
end
if choix_sorts_10372 == 1 then
pUnit:RegisterEvent('spell1_10372', 1, 1)
end
if choix_sorts_10372 == 2 then
pUnit:RegisterEvent('spell2_10372', 1, 1)
end
end

function mob10372_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10372', math.random(1500, 3000), 1)
end

function mob10372_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10372_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10372_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10372, 1, 'mob10372_Action')
RegisterUnitEvent(10372, 2, 'mob10372_Leave')
RegisterUnitEvent(10372, 3, 'mob10372_Kill')
RegisterUnitEvent(10372, 4, 'mob10372_Die')
